#include "stm32f10x.h"                  // Device header
#include "key.h"
#include "led.h"

void start_key_press_example(void) {
	Key_init();
	Led_init();
	uint8_t pressed = 0;
	while(1) {
		pressed = Key_getNum();
		if (pressed == 1) {
			led1_turn();
		} else if (pressed == 2) {
			led2_turn();
		} else if (pressed == 3) {
			led3_turn();
		}
	}
}
